import service from '@/utils/request'

export const categoryList = (data) => {
  return service({
    url: '/config/category/list',
    method: 'post',
    data
  })
}
export const categoryCreate = (data) => {
  return service({
    url: '/config/category/create',
    method: 'post',
    data
  })
}
export const categoryStatus = (data) => {
  return service({
    url: '/config/category/status',
    method: 'put',
    data
  })
}
export const categoryUpdate = (data) => {
  return service({
    url: '/config/category/update',
    method: 'put',
    data
  })
}
